<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'idEsportista'); ?>
		<?php echo $form->textField($model,'idEsportista'); ?>
	</div>

    <?php
    /*
	<div class="row">
		<?php echo $form->label($model,'dataAlta'); ?>
		<?php echo $form->textField($model,'dataAlta'); ?>
	</div>
     * 
     */
    ?>
    
    <div class="row">
        <?php echo $form->label($model,'dataAlta'); ?>
               
        <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
            'model'=>$model,
            'language'=>'ca',
            'attribute'=>'dataAlta',
            'value'=>$model->dataAlta,
            // additional javascript options for the date picker plugin
            'options'=>array(
                //'showAnim'=>'fold',
                'showAnim'=>'slide',
                'showButtonPanel'=>true,
                'autoSize'=>true,
                'dateFormat'=>'dd/mm/yy',
                'defaultDate'=>$model->dataAlta,
                //'buttonImage'=>Yii::app()->baseUrl.'/images/icons/calendari.png',
                'buttonImageOnly'=>true,
                'buttonText'=>'Triar',
                'selectOtherMonths'=>true,
                //'showOn'=>'button',
                'showOtherMonths'=>true,
                'changeMonth'=>'true',
                'changeYear'=>'true,'
            ),
        ));
        ?>
    </div>

	<div class="row">
		<?php echo $form->label($model,'DNI'); ?>
		<?php echo $form->textField($model,'DNI'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'cognoms'); ?>
		<?php echo $form->textField($model,'cognoms',array('size'=>45,'maxlength'=>45)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'nom'); ?>
		<?php echo $form->textField($model,'nom',array('size'=>45,'maxlength'=>45)); ?>
	</div>

    <?php
    /*
	<div class="row">
		<?php echo $form->label($model,'dataNaixement'); ?>
		<?php echo $form->textField($model,'dataNaixement'); ?>
	</div>
     * 
     */
    ?>

    <div class="row">
        <?php echo $form->label($model,'dataNaixement'); ?>
        <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
            'model'=>$model,
            'attribute'=>'dataNaixement',
            'value'=>$model->dataNaixement,
            'language'=>'ca',
            // additional javascript options for the date picker plugin
            'options'=>array(
                'showAnim'=>'fold',
                'showButtonPanel'=>true,
                'autoSize'=>true,
                'dateFormat'=>'dd/mm/yy',
                'defaultDate'=>$model->dataNaixement,
                //'buttonImage'=>Yii::app()->baseUrl.'/images/icons/calendari.png',
                'buttonImageOnly'=>true,
                'buttonText'=>'Triar data',
                'selectOtherMonths'=>true,
                //'showOn'=>'button',
                'showOtherMonths'=>true,
                'changeMonth'=>'true',
                'changeYear'=>'true,'
            ),
        ));
        ?>
    </div>
    
    <div class="row">
		<?php echo $form->label($model,'sexe'); ?>
        <?php echo $form->dropDownList($model, 'sexe',
            array(''=>'(Tria sexe)','M'=>'Masculí','F'=>'Femení' ));?>
	</div>
    
    <?php
    /*
	<div class="row">
		<?php echo $form->label($model,'sexe'); ?>
		<?php echo $form->textField($model,'sexe',array('size'=>1,'maxlength'=>1)); ?>
	</div>
     * 
     */
    ?>

	<div class="row">
		<?php echo $form->label($model,'codiCatSalut'); ?>
		<?php echo $form->textField($model,'codiCatSalut',array('size'=>20,'maxlength'=>20)); ?>
	</div>

    <?php
    /*
	<div class="row">
		<?php echo $form->label($model,'idClub'); ?>
		<?php echo $form->textField($model,'idClub'); ?>
	</div>
     * 
     */
    ?>
    
    <div class="row">
		<?php echo $form->label($model,'idClub'); ?>
        <?php echo $form->dropDownList($model, 'idClub',
            CHtml::listData(Club::model()->findAll(array('order'=>'nom')), 'idClub', 'nom'),
                array('prompt'=>'(Tria un club)'));?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Cercar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->